<link rel="stylesheet" href="/Content/FileUpload/css/jquery.fileupload.css" />
<div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>系统设置</h5>
                            
                        </div>
                        <div class="ibox-content">
                            <form  action="/index.php/Home/Index/appset" id="myform" method="post" class="form-horizontal"  enctype="multipart/form-data">
                             
								
								
								<div class="form-group"><label class="col-sm-2 control-label">服务器流地址</label>
                                    <div class="col-sm-10">
									<input type="text" name="rtmp" class="form-control" value="{$rtmp}"></div>
                                </div>
								
							
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit" >保存</button>
                                    </div>
                                </div>
								
                            </form>
                        </div>
                    </div>
                </div>
<script src="/Content/FileUpload/js/vendor/jquery.ui.widget.js"></script>
  <script src="/Content/FileUpload/js/jquery.iframe-transport.js"></script>
  <script src="/Content/FileUpload/js/jquery.fileupload.js"></script>
  <script>
 $(function () {
                'use strict';
                var url = "/upload.php";
                $('#fileupload').fileupload({
                    autoUpload: true,//是否自动上传
                    url: url,
                    dataType: 'json',
                    done: function (e, data) {
                       
                        console.log(data.result);
                        if (data.result.error == 1) {
                            swal("上传出错了!", data.result.message, "success");
                        } else {
                            var pic = data.result.pic;
                            $("#showpic").html("<img src='/" + pic + "' width='100px'/>");
                            $("#logo").val(pic);


                        }
                    },
                    progressall: function (e, data) {
                        var progress = parseInt(data.loaded / data.total * 100, 10);
                        $('#progress .progress-bar').css(
                            'width',
                            progress + '%'
                        );
                    }
                }).prop('disabled', !$.support.fileInput)
                    .parent().addClass($.support.fileInput ? undefined : 'disabled');
					
	
 
       

	});
</script>